package lambdasinaction.chap4;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Stream;

/**
 * TODO
 *
 * @author Fish
 * @since 0.0.1 2018/7/23 23:53
 */
public class MyStreamVsCollection {

  public static void main(String[] args) {
    List<String> names = Arrays.asList("Java8", "Lambdas", "In", "Action");
    Stream<String> s = names.stream();
    s.forEach(System.out::println);

  }

}
